package com.WFinstitute.dto;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.json.JSONObject;

public class HeadImg  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5064926556697105623L;

	private int id;
	
	private String name;
		
	private String url;
	
	private String path;

	public HeadImg() {

	}


	public HeadImg(int id, String name, String url) {
		this.id = id;
		this.name = name;
		this.url = url;
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
	public String getUrl() {
		return url;
	}


	public void setUrl(String url) {
		this.url = url;
	}

	public String getPath() {
		return path;
	}


	public void setPath(String path) {
		this.path = path;
	}


	public JSONObject toJsonObj() {
		
		JSONObject jo=new JSONObject();
		jo.put("id", getId());
		jo.put("name", getName());
		jo.put("url", getUrl());
		return jo;
	}
	
	
	
	public String toJson(){
		return toJsonObj().toString();
		
	}
}
